import { Component } from '@angular/core';
import { DomSanitizer } from '@angular/platform-browser';
import { MatIconRegistry} from '@angular/material';

@Component({
  selector: 'wdl',
  template: '<router-outlet></router-outlet>'
})
export class AppComponent {
  constructor(private matIconRegistry: MatIconRegistry, sanitizer: DomSanitizer) {
    matIconRegistry.addSvgIcon('dashboard', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/dashboard.svg'));
    matIconRegistry.addSvgIcon('fault', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/fault.svg'));
    matIconRegistry.addSvgIcon('performance', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/performance.svg'));
    matIconRegistry.addSvgIcon('tools', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/tools.svg'));
    matIconRegistry.addSvgIcon('users', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_subscribers.svg'));
    matIconRegistry.addSvgIcon('about', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_help.svg'));
    matIconRegistry.addSvgIcon('close', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_close.svg'));
    matIconRegistry.addSvgIcon('error', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_error_alert.svg'));
    matIconRegistry.addSvgIcon('warning', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_warning_alert.svg'));
    matIconRegistry.addSvgIcon('quit', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/quit.svg'));
    matIconRegistry.addSvgIcon('add', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_add.svg'));
    matIconRegistry.addSvgIcon('delete', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_delete.svg'));
    matIconRegistry.addSvgIcon('edit', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_edit.svg'));
    matIconRegistry.addSvgIcon('refresh', sanitizer.bypassSecurityTrustResourceUrl('../assets/images/ic_refresh.svg'));
  }
}
